package cn.yuan.basic.service;

import cn.yuan.basic.query.BaseQuery;
import cn.yuan.basic.util.PageList;

import java.util.List;

public interface IBaseService<T> {
    
    void save(T t);
    
    void remove(Long id);
    
    void update(T t);
   
    T loadById(Long id);
    
    List<T> loadAll();
    
    PageList<T> queryForPage(BaseQuery baseQuery);
}
